home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWToolbx / Sources / FWAlert.cpp next >
Encoding:
Text File  |  1996-08-16  |  1.1 KB  |  46 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAlert.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWOS.hpp"
  11.  
  12. #ifndef FWALERT_H
  13. #include "FWAlert.h"
  14. #endif
  15.  
  16. #ifndef PRALERT_H
  17. #include "PRAlert.h"
  18. #endif
  19.  
  20. #ifndef FWSTRING_H
  21. #include "FWString.h"
  22. #endif
  23.  
  24. //========================================================================================
  25. // FW_Alert
  26. //========================================================================================
  27.  
  28. FW_AlertResult FW_Alert(const FW_CString& documentName,
  29.                                     const FW_CString& message,
  30.                                     FW_ButtonType buttonType,
  31.                                     FW_IconType iconType,
  32.                                     FW_DefaultButton defaultButton,
  33.                                     FW_Boolean beep)
  34. {
  35.     FW_SOMEnvironment ev;
  36.     FW_AlertResult result = FW_PrivAlert(ev,
  37.                                         documentName,
  38.                                         message,
  39.                                         buttonType,
  40.                                         iconType,
  41.                                         defaultButton,
  42.                                         beep);
  43.     FW_FailOnEvError(ev);    
  44.     return result;
  45. }
  46.